package Dao;
import Manage.Camera;
import Manage.Manager;
import Manage.User;
import Manage.User_login;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserDao {
    void register(@Param("user") String user,@Param("username") String username,@Param("password") String password);
    List<User_login> login(@Param("user") String user, @Param("username") String username, @Param("password") String password);
    String selectusername(String username);
    void usersinsert(User user);
    void UsersUpdate(User user);
    User Selectusers(String username);
    void caminsert(Camera camera);
    List<Camera> selectcam(String username);
    void cameradel(@Param("keyword") Integer keyword,@Param("username") String username);
    void cameraupda(Camera camera);
    Integer superinsert(Manager manager);
    List<User_login> selectallusername();
    List<Manager> selectall(@Param("username") String username,@Param("phone") String phone,@Param("address") String address,@Param("keyword") String keyword,@Param("street") String street);
    void usersdel(String username);
    void manageupdate(User user);
    void loginupdate(User_login user_login);
}
